package org.jeecg.glr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 海康摄像头人脸检测人脸图片资源
 * 原来的TBFaceDetectBaiduResource
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
@Data
@TableName("glr_video_bd_resource")
public class GlrVideoBdResource implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
    private String id;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    private String createBy;
	/**创建日期*/
	@Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    private String updateBy;
	/**更新日期*/
	@Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
	/**所属部门*/
	@Excel(name = "所属部门", width = 15)
    private String sysOrgCode;
	/**所属公司*/
	@Excel(name = "所属公司", width = 15)
    private String sysCompanyCode;

	@Excel(name = "资源类型") private String type; //资源类型

	@Excel(name = "文件类型") private String fileType;

	@Excel(name = "文件名称") private String fileName; //上传的文件名称

	@Excel(name = "文件地址") private String filePath; // 文件地址

	@Excel(name = "文件大小") private Long fileSize; //文件大小

	@Excel(name = "时长") private Long length; //播放时长 以秒为单位

	@Excel(name = "文件大小") private String fileId; //真实的文件名

	@Transient private transient String files;  //临时保存的文件名字

}
